package com.genesis.yunnanji.bean;

import android.text.TextUtils;

import java.util.List;

/**
 * Created by Administrator on 2018/4/16.
 */

public class HomePageListBean {


    /**
     * status : 200
     * message : 查询成功
     * result : {"banner":[{"id":"2672","advert_title":"ad2","advert_img":"/Picture/2018-03-21/5ab1cbb84dab2.jpg","target_link":""},{"id":"2671","advert_title":"ad1","advert_img":"/Picture/2017-11-08/5a0269bf29f62.jpg","target_link":""}],"list":[{"id":"2704","category_id":0,"title":"测试广告","view":0,"taget_link":"","cover_img":"/Picture/2018-04-16/thumb_5ad43e3658ea5.jpg","listlayout":-1,"cover_img2":"","cover_img3":"","add_time":1523928294},{"id":"1706","category_id":"93","title":"在原始雨林里，这里的茶树与天地自然共生养！","view":"45","taget_link":"http://m.jinzhanji.com/News/details/id/1706.html","cover_img":"/Picture/2018-04-16/thumb_5ad46d44313cc.png","listlayout":"1","cover_img2":"/Picture/2018-04-16/thumb_5ad46a2f2ccbe.jpg","cover_img3":"/Picture/2018-04-16/thumb_5ad46a1d3ce29.jpg","add_time":"1523876859","istoutiao":1},{"id":"1701","category_id":"93","title":"桃花节助力\u201c丽江雪桃\u201d品牌建设","view":"4","taget_link":"http://m.jinzhanji.com/News/details/id/1701.html","cover_img":"/Picture/2018-04-16/thumb_5ad447a05c573.jpg","listlayout":"1","cover_img2":"/Picture/2018-04-16/thumb_5ad447a0acd25.jpg","cover_img3":"/Picture/2018-04-16/thumb_5ad447a0e5012.jpg","add_time":"1523882328","istoutiao":1},{"id":"1694","category_id":"93","title":"\u201c绿色食品牌\u201d绘就兴农蓝图","view":"1","taget_link":"http://m.jinzhanji.com/News/details/id/1694.html","cover_img":"/Picture/2018-04-16/thumb_5ad43cfacea8e.jpg","listlayout":"1","cover_img2":"/Picture/2018-04-16/thumb_5ad43cfa02420.jpg","cover_img3":"/Picture/2018-04-16/thumb_5ad43cfa71596.jpg","add_time":"1523882081","istoutiao":1},{"id":"2703","category_id":0,"title":"测试广告","view":0,"taget_link":"","cover_img":"/Picture/2018-04-16/thumb_5ad43e3658ea5.jpg","listlayout":-1,"cover_img2":"","cover_img3":"","add_time":1523928294},{"id":"1702","category_id":"81","title":"云南昭通：农技干部田间地头送科技","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1702.html","cover_img":"/Picture/2018-04-16/thumb_5ad448e968a5e.png","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523861746"},{"id":"1704","category_id":"81","title":"农技专家远程指导老外种地 互联网让农技无国界","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1704.html","cover_img":"/Picture/2018-04-16/thumb_5ad45016169ab.jpg","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523863577"},{"id":"1697","category_id":"81","title":"二十一届版纳边交会签约13个项目 总金额超390亿","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1697.html","cover_img":"/Picture/2018-04-16/thumb_5ad441a657cdd.jpg","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523864578"},{"id":"1705","category_id":"81","title":"用好\u201c互联网+\u201d成效显著 助力乡村振兴","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1705.html","cover_img":"/Picture/2018-04-16/thumb_5ad451101d1b6.jpg","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523864290"},{"id":"1703","category_id":"81","title":"云南澜沧：院士专家田间授课 农民学员地头毕业","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1703.html","cover_img":"/Picture/2018-04-16/thumb_5ad44e4bd9a55.jpg","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523863122"},{"id":"1695","category_id":"81","title":"昆明晋宁头水野生菌上市","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1695.html","cover_img":"/Picture/2018-04-16/thumb_5ad43ddd5fcb6.gif","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523864382"},{"id":"1700","category_id":"81","title":"凤庆：茶花绽放艳满城","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1700.html","cover_img":"/Picture/2018-04-16/thumb_5ad4462611003.jpg","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523861033"},{"id":"1699","category_id":"81","title":"大理州冬春农业科技大培训助力乡村振兴","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1699.html","cover_img":"/Picture/2018-04-16/thumb_5ad444bd63f52.jpeg","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523860680"},{"id":"1698","category_id":"81","title":"云县发展生态茶园助农增收致富 茶叶产值达2000万","view":"0","taget_link":"http://m.jinzhanji.com/News/details/id/1698.html","cover_img":"/Picture/2018-04-16/thumb_5ad442fd89ac1.jpg","listlayout":"0","cover_img2":"","cover_img3":"","add_time":"1523864594"},{"listlayout":-2,"advert_list":[{"id":"2702","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad400b90fdf6.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/9.html"},{"id":"2701","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad4007dd241d.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/14.html"},{"id":"2700","advert_title":"测试广告1","advert_img":"/Picture/2018-04-16/thumb_5ad4003737993.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/17.html"},{"id":"2699","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad3ffe737ffb.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/23.html"},{"id":"2698","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad3ff81abab0.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/19.html"}]}]}
     */

    public int status;
    public String message;
    public ResultBean result;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        public List<BannerBean> banner;
        public List<ListBean> list;

        public List<BannerBean> getBanner() {
            return banner;
        }

        public void setBanner(List<BannerBean> banner) {
            this.banner = banner;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class BannerBean {
            /**
             * id : 2672
             * advert_title : ad2
             * advert_img : /Picture/2018-03-21/5ab1cbb84dab2.jpg
             * target_link :
             */

            public String id;
            public String advert_title;
            public String advert_img;
            public String target_link;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getAdvert_title() {
                return advert_title;
            }

            public void setAdvert_title(String advert_title) {
                this.advert_title = advert_title;
            }

            public String getAdvert_img() {
                return advert_img;
            }

            public void setAdvert_img(String advert_img) {
                this.advert_img = advert_img;
            }

            public String getTarget_link() {
                return target_link;
            }

            public void setTarget_link(String target_link) {
                this.target_link = target_link;
            }
        }

        public static class ListBean {
            /**
             * id : 2704
             * category_id : 0
             * title : 测试广告
             * view : 0
             * taget_link :
             * cover_img : /Picture/2018-04-16/thumb_5ad43e3658ea5.jpg
             * listlayout : -1
             * cover_img2 :
             * cover_img3 :
             * add_time : 1523928294
             * istoutiao : 1
             * advert_list : [{"id":"2702","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad400b90fdf6.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/9.html"},{"id":"2701","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad4007dd241d.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/14.html"},{"id":"2700","advert_title":"测试广告1","advert_img":"/Picture/2018-04-16/thumb_5ad4003737993.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/17.html"},{"id":"2699","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad3ffe737ffb.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/23.html"},{"id":"2698","advert_title":"测试广告","advert_img":"/Picture/2018-04-16/thumb_5ad3ff81abab0.jpg","target_link":"http://www.jinzhanji.com/Mall/Details/index/id/19.html"}]
             */

            public String id;
            public int category_id;
            public String title;
            public int view;
            public String taget_link;
            public String cover_img;
            public int listlayout;
            public String cover_img2;
            public String cover_img3;
            public String add_time;
            public int istoutiao = 0;
            public List<AdvertListBean> advert_list;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getCategory_id() {
                return category_id;
            }

            public void setCategory_id(int category_id) {
                this.category_id = category_id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public int getView() {
                return view;
            }

            public void setView(int view) {
                this.view = view;
            }

            public String getTaget_link() {
                return taget_link;
            }

            public void setTaget_link(String taget_link) {
                this.taget_link = taget_link;
            }

            public String getCover_img() {
                return cover_img;
            }

            public void setCover_img(String cover_img) {
                this.cover_img = cover_img;
            }

            public int getListlayout() {
                if (TextUtils.isEmpty(getCover_img()) && listlayout == 0) {
                    listlayout = 2;
                }
                return listlayout;

            }

            public void setListlayout(int listlayout) {
                this.listlayout = listlayout;
            }

            public String getCover_img2() {
                return cover_img2;
            }

            public void setCover_img2(String cover_img2) {
                this.cover_img2 = cover_img2;
            }

            public String getCover_img3() {
                return cover_img3;
            }

            public void setCover_img3(String cover_img3) {
                this.cover_img3 = cover_img3;
            }

            public String getAdd_time() {
                return add_time;
            }

            public void setAdd_time(String add_time) {
                this.add_time = add_time;
            }

            public int getIstoutiao() {
                return istoutiao;
            }

            public void setIstoutiao(int istoutiao) {
                this.istoutiao = istoutiao;
            }

            public List<AdvertListBean> getAdvert_list() {
                return advert_list;
            }

            public void setAdvert_list(List<AdvertListBean> advert_list) {
                this.advert_list = advert_list;
            }

            public static class AdvertListBean {
                /**
                 * id : 2702
                 * advert_title : 测试广告
                 * advert_img : /Picture/2018-04-16/thumb_5ad400b90fdf6.jpg
                 * target_link : http://www.jinzhanji.com/Mall/Details/index/id/9.html
                 */

                public String id;
                public String advert_title;
                public String advert_img;
                public String target_link;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getAdvert_title() {
                    return advert_title;
                }

                public void setAdvert_title(String advert_title) {
                    this.advert_title = advert_title;
                }

                public String getAdvert_img() {
                    return advert_img;
                }

                public void setAdvert_img(String advert_img) {
                    this.advert_img = advert_img;
                }

                public String getTarget_link() {
                    return target_link;
                }

                public void setTarget_link(String target_link) {
                    this.target_link = target_link;
                }
            }
        }
    }
}
